{
found = true;
Resource resource = (Resource) resources.get( value );
if ( resource instanceof ApplicationResource )
{
ApplicationResource appResource = (ApplicationResource) resource;
ApplicationHome appHome =
(ApplicationHome) initialContext.lookup( ApplicationHome.HOME_LOCATION );
appHome.remove( aKey );
aResourceAdminHome.getResources( ).remove( appResource.getID( ) );
}
else if ( resource instanceof HostResource )
{
HostResource hostResource = (HostResource) resource;
HostHome hostHome = (HostHome) initialContext.lookup( HostHome.HOME_LOCATION );