if(!HibernateRepositoryProvider.class.isAssignableFrom(clazz))
throw new ServletConfigurationError("'" + clazz.getCanonicalName() + "' does not implement '" + HibernateRepositoryProvider.class.getCanonicalName() + "'.");
try
{
HibernateRepositoryProvider provider = (HibernateRepositoryProvider) clazz.newInstance();
return provider;
}
catch(InstantiationException e)
{
throw new ServletConfigurationError(unableToInstantineErrorString(clazz), e);