*/
public String getObjectClassDefinition(String providerID, String id,
String locale) {
String ocdID = "-1";
MetaTypeProvider provider = getMetaTypeProvider(providerID);
ObjectClassDefinitionRegistry ocdRegistry =
(ObjectClassDefinitionRegistry) ocdReg.getService();
if (provider != null && ocdRegistry != null) {
ObjectClassDefinition ocd = provider.getObjectClassDefinition(id, locale);
if (ocd != null) {
ocdID = ocdRegistry.registerObjectClassDefinition(ocd);
}
}
return ocdID;
}