Class clazz = cl.parseClass(in, resourceId.getId(), files);
resource = createInstance(clazz);
}
catch (IllegalArgumentException e)
{
throw new ResourcePublicationException(e.getMessage());
}
catch (InstantiationException e)
{
throw new ResourcePublicationException(e.getMessage());
}
catch (IllegalAccessException e)
{
throw new ResourcePublicationException(e.getMessage());
}
catch (InvocationTargetException e)
{
throw new ResourcePublicationException(e.getMessage());
}
catch (MalformedURLException e)
{
throw new IllegalArgumentException(e.getMessage(), e);
}