code: private String[] handleDeprecation(DeprecationContext deprecations,
        String name) {
      if (null != name) {
        name = name.trim();
      }
      ArrayList<String > names = new ArrayList<String>();
  	if (isDeprecated(name)) {
        DeprecatedKeyInfo keyInfo = deprecations.getDeprecatedKeyMap().get(name);
        warnOnceIfDeprecated(deprecations, name);
        for (String newKey : keyInfo.newKeys) {
          if(newKey != null) {
            names.add(newKey);
          }
        }
      }
      if(names.size() == 0) {
      	names.add(name);
      }
      for(String n : names) {
  	  String deprecatedKey = deprecations.getReverseDeprecatedKeyMap().get(n);
  	  if (deprecatedKey != null && !getOverlay().containsKey(n) &&
  	      getOverlay().containsKey(deprecatedKey)) {
  	    getProps().setProperty(n, getOverlay().getProperty(deprecatedKey));
  	    getOverlay().setProperty(n, getOverlay().getProperty(deprecatedKey));
  	  }
      }
      return names.toArray(new String[names.size()]);
    }
docs: Checks for the presence of the property <code>name</code> in the
  deprecation map. Returns the first of the list of new keys if present
  in the deprecation map or the <code>name</code> itself. If the property
  is not presently set but the property map contains an entry for the
  deprecated key, the value of the deprecated key is set as the value for
  the provided property name.
  
  @param name the property name
  @return the first property in the list of properties mapping
  the <code>name</code> or the <code>name</code> itself.