{
return recordClass.getConstructor(DataMap.class).newInstance(data);
}
catch (SecurityException e)
{
throw new RestLiInternalException(e);
}
catch (InstantiationException e)
{
throw new RestLiInternalException(e);
}
catch (IllegalAccessException e)
{
throw new RestLiInternalException(e);
}
catch (InvocationTargetException e)
{
throw new RestLiInternalException(e);
}
catch (NoSuchMethodException e)
{
throw new RestLiInternalException(e);
}
}