if (nl.getLength() > 0) {
JAXBContext context = null;
String packageName = RMUtils.getWSRMPolicyFactory().getClass().getPackage().getName();
try {
context = JAXBContext.newInstance(packageName, getClass().getClassLoader());
Unmarshaller u = context.createUnmarshaller();
Object obj = u.unmarshal(nl.item(0));
if (obj instanceof JAXBElement<?>) {
JAXBElement<?> el = (JAXBElement<?>)obj;
obj = el.getValue();
}