String indent = wfs.isVerbose() ? " " : "";
Charset charset = Charset.forName( wfs.getGeoServer().getSettings().getCharset() );
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output,charset));
LockFeatureType lft = (LockFeatureType)operation.getParameters()[0];
//TODO: get rid of this hardcoding, and make a common utility to get all
//these namespace imports, as everyone is using them, and changes should
//go through to all the operations.
writer.write("<?xml version=\"1.0\" encoding=\"" + charset.name() + "\"?>");
writer.write("<WFS_LockFeatureResponse " + "\n");
writer.write(indent + "xmlns=\"http://www.opengis.net/wfs\" " + "\n");
writer.write(indent + "xmlns:ogc=\"http://www.opengis.net/ogc\" " + "\n");
writer.write(indent + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "\n");
writer.write(indent + "xsi:schemaLocation=\"http://www.opengis.net/wfs ");
writer.write(buildSchemaURL(lft.getBaseUrl(), "wfs/1.0.0/WFS-transaction.xsd"));
writer.write("\">" + "\n");
writer.write(indent + "<LockId>" + lockResponse.getLockId() + "</LockId>" + "\n");
List featuresLocked = null;