public Resource createDomainElement(WriteGraph g, Range rangeElement)\r
throws MappingException {\r
try {\r
- String typeUri = (String)typeGetter.invoke(rangeElement, null);\r
+ String typeUri = (String)typeGetter.invoke(rangeElement, (Object[]) null);\r
if(LOGGER.isInfoEnabled())\r
LOGGER.info("SimpleLinkType.createDomainElement " +\r
rangeElement.toString()\r
} catch (IllegalAccessException e) {\r
throw new MappingException(e);\r
} catch (InvocationTargetException e) {\r
- throw new MappingException(e);\r
+ throw new MappingException(e.getCause());\r
}\r
}\r
\r
} catch (IllegalArgumentException e) {\r
throw new MappingException(e);\r
} catch (InvocationTargetException e) {\r
- throw new MappingException(e);\r
+ throw new MappingException(e.getCause());\r
} \r
}\r
\r