}
public EJBImplementation read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
// Read an <implementation.ejb> element
EJBImplementation implementation = implementationFactory.createEJBImplementation();
implementation.setUnresolved(true);
// Read the ejb-link attribute
String ejbLink = getString(reader, "ejb-link");
if (ejbLink != null) {
implementation.setEJBLink(ejbLink);
// Set the URI of the component type
//implementation.setURI(ejbLink.replace('#', '/'));
int hashPosition = ejbLink.indexOf('#');
if (hashPosition >= 0) {
implementation.setURI(ejbLink.substring(hashPosition + 1));
} else {
implementation.setURI(ejbLink);
}
} else {
error("EJBLinkAttributeMissing", reader);
}