this.rmiBindingFactory = rmiBindingFactory;
}
public RMIBinding read(XMLStreamReader reader) throws ContributionReadException {
try {
RMIBinding rmiBinding = rmiBindingFactory.createRMIBinding();
//Read policies
readPolicies(rmiBinding, reader);
//Read host, port and service name
rmiBinding.setRmiHostName(reader.getAttributeValue(null, RMI_HOST));
rmiBinding.setRmiPort(reader.getAttributeValue(null, RMI_PORT));
rmiBinding.setRmiServiceName(reader.getAttributeValue(null, RMI_SERVICE));
// Skip to end element
while (reader.hasNext()) {
if (reader.next() == END_ELEMENT && BINDING_RMI_QNAME.equals(reader.getName())) {
break;