public WGDocumentCore wrapVariantCore(WGDocumentCore core) throws WGAPIException {
if (_lookupVariants) {
String name = (String) core.getMetaData(WGDesignDocument.META_NAME);
if (name.endsWith(_variantSuffix)) {
return new DesignProviderCoreWrapper(core, this, true, false);
}
else {
return new DesignProviderCoreWrapper(core, this, false, false);
}
}
else {
return new DesignProviderCoreWrapper(core, this, false, false);
}
}