String com_sun_appservType = SPECIAL_CASE_DEFAULT_ATTRIBUTES.get( j2eeType );
if ( com_sun_appservType == null )
{
// not a special case, use the usual mappings
com_sun_appservType = OldConfigTypes.getInstance().j2eeTypeToOldType( j2eeType );
debug( "j2eeType = " + j2eeType + ", com_sun_appservType = " + com_sun_appservType );
}
final OldDomainMBean d = getOldConfigProxies().getOldDomainMBean();
final List<Attribute> oldAttrs = TypeCast.asList(
d.getDefaultAttributeValues( com_sun_appservType, (String[])null ) );
Map<String,String> results = Collections.emptyMap();
if ( oldAttrs != null && oldAttrs.size() != 0)
{
results = new HashMap<String,String>();
for( final Attribute attr : oldAttrs )
{
final String name = attr.getName();
final String value = (String)attr.getValue();
results.put( name, value );
}
}
return results;