String localName = parameters.getLocalPart();
String namespace = null;
if (localName.equals(Q_1.getLocalPart())) {
namespace = Q_1.getNamespaceURI();
} else if (localName.equals(Q_2.getLocalPart())) {
namespace = Q_2.getNamespaceURI();
} else if (localName.equals(Q_3.getLocalPart())) {
namespace = Q_3.getNamespaceURI();
} else {
throw new RemoteException("invalid localname:" + localName);
}
if (!parameters.getNamespaceURI().equals(namespace)) {
throw new RemoteException("Expected: " + namespace + " but got: " +
parameters.getNamespaceURI());
}
return new GetPlanResponse();