/**
   * @see
   *     org.kuali.rice.krad.service.DataDictionaryService#getAttributeControlDefinition(java.lang.String)
   */
  public ControlDefinition getAttributeControlDefinition(String entryName, String attributeName) {
    ControlDefinition controlDefinition = null;

    AttributeDefinition attributeDefinition = getAttributeDefinition(entryName, attributeName);
    if (attributeDefinition != null) {
      controlDefinition = attributeDefinition.getControl();
    }

    return controlDefinition;
  }
  /**
   * @see
   *     org.kuali.rice.krad.service.DataDictionaryService#getAttributeValuesScopeId(java.lang.Class,
   *     java.lang.String)
   */
  public Class<? extends KeyValuesFinder> getAttributeValuesFinderClass(
      String entryName, String attributeName) {
    Class valuesFinderClass = null;

    AttributeDefinition attributeDefinition = getAttributeDefinition(entryName, attributeName);
    if (attributeDefinition != null) {
      String valuesFinderClassName = attributeDefinition.getControl().getValuesFinderClass();
      valuesFinderClass = ClassLoaderUtils.getClass(valuesFinderClassName);
    }

    return valuesFinderClass;
  }
  /** @see org.kuali.rice.krad.service.DataDictionaryService#getAttributeSize(java.lang.String) */
  public Integer getAttributeSize(String entryName, String attributeName) {
    Integer size = null;

    AttributeDefinition attributeDefinition = getAttributeDefinition(entryName, attributeName);
    if (attributeDefinition != null) {
      ControlDefinition controlDefinition = attributeDefinition.getControl();
      if (controlDefinition.isText() || controlDefinition.isCurrency()) {
        size = controlDefinition.getSize();
      }
    }

    return size;
  }