}
final RepositoryAdmin admin = ( RepositoryAdmin ) getRepositoryAdmin();
Resolver resolver = admin.resolver();
resolver.add( resource );
resolver.resolve(); // (Resolver.NO_OPTIONAL_RESOURCES);
Resource[] required = resolver.getRequiredResources();
for ( int i = 0; required != null && i < required.length; i++ )
{
json.append( "required", toJSON( required[i], bundles, false ) ); //$NON-NLS-1$
}