private void addSchemaLocation(Marshaller ms, Annotation[] anns) throws Exception {
XSISchemaLocation sl = AnnotationUtils.getAnnotation(anns, XSISchemaLocation.class);
if (sl != null) {
String value = sl.resolve() ? resolveXMLResourceURI(sl.value()) : sl.value();
String propName = !sl.noNamespace()
? Marshaller.JAXB_SCHEMA_LOCATION : Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION;
ms.setProperty(propName, value);
}
}