/**
* {@inheritDoc}
*/
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
{
Schema schema = new Schema();
String uri = reader.getAttribute("uri");
try
{
schema.setUriPattern(Pattern.compile(uri));
}
catch (PatternSyntaxException e)
{
LOGGER.warn("Invalid pattern for schema URI:" + uri, e);
}