* @param tenantId
* @param type
* @return
*/
public DynamicEntity newEntity(Map<String, String> tenantId, String type) {
JPADynamicHelper helper = new JPADynamicHelper(getEmf());
DynamicEntity entity = null;
try{
entity = helper.newDynamicEntity(type);
} catch (IllegalArgumentException e){
ClassDescriptor descriptor = getDescriptor(type);
if (descriptor != null){
DynamicType jaxbType = (DynamicType) descriptor.getProperty(DynamicType.DESCRIPTOR_PROPERTY);
if (jaxbType != null){