unmarshaller.setSchemaValidation(true);
URL webXml = getClass().getResource(name);
if (webXml == null)
throw new IllegalStateException("Unable to find: "+name);
SchemaBinding schema = JBossXBBuilder.build(clazz);
WebMetaData confWebMD = (WebMetaData) unmarshaller.unmarshal(webXml.toString(), schema);
JBoss50WebMetaData sharedMetaData = new JBoss50WebMetaData();
sharedMetaData.merge(null, confWebMD);
return sharedMetaData;
}