public ScriptImplementation read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
// Read an <implementation.script> element
// Create and initialize the script implementation model
ScriptImplementation implementation = scriptImplementationFactory.createScriptImplementation();
implementation.setUnresolved(true);
// Read the script attribute
String script = reader.getAttributeValue(null, "script");
if (script != null) {
implementation.setScript(script);
}
// Read the language attribute
String language = reader.getAttributeValue(null, "language");
if (language != null) {
implementation.setLanguage(language);
}
// Skip to end element
while (reader.hasNext()) {
if (reader.next() == END_ELEMENT && IMPLEMENTATION_SCRIPT.equals(reader.getName())) {