StAXUtils.createXMLStreamReader(
new ByteArrayInputStream(operationParameter.getBytes()));
OMElement paramEle = new StAXOMBuilder(xmlSR).getDocumentElement();
String paramName = paramEle.getAttribute(new QName("name")).getAttributeValue();
InputStream xmlIn = new ByteArrayInputStream(operationParameter.getBytes());
XMLPrettyPrinter xmlPrettyPrinter = new XMLPrettyPrinter(xmlIn, null);
Parameter parameter = new Parameter(paramName,
xmlPrettyPrinter.xmlFormat());
boolean isLocked = false;
OMAttribute lockedAttrib = paramEle.getAttribute(new QName("locked"));
if (lockedAttrib != null) {
isLocked = "true".equals(lockedAttrib.getAttributeValue());
}