List<String> schemaLocs = new LinkedList<String>();
SchemaValidation sv = null;
for (ClassResourceInfo cri : cris) {
sv = cri.getServiceClass().getAnnotation(SchemaValidation.class);
if (sv != null && sv.schemas() != null && sv.type() != SchemaValidation.SchemaValidationType.NONE) {
for (String s : sv.schemas()) {
String theSchema = s;
if (!theSchema.startsWith("classpath:")) {
theSchema = "classpath:" + theSchema;
}
schemaLocs.add(theSchema);