/** @since 2.2.3 */ public static BaseObject newCustomClassInstance( DocumentReference classReference, XWikiContext context) throws XWikiException { BaseClass bclass = context.getWiki().getXClass(classReference, context); BaseObject object = (bclass == null) ? new BaseObject() : bclass.newCustomClassInstance(context); return object; }
/** * @deprecated since 2.2.3 use {@link #newCustomClassInstance(DocumentReference, XWikiContext)} */ @Deprecated public static BaseObject newCustomClassInstance(String className, XWikiContext context) throws XWikiException { BaseClass bclass = context.getWiki().getClass(className, context); BaseObject object = (bclass == null) ? new BaseObject() : bclass.newCustomClassInstance(context); return object; }