synchronized(this) {
if (usesPortMap.containsKey(portName) ||
(providesPortMap.containsKey(portName)) ||
(wsPortMap.containsKey(portName)))
throw new PortAlreadyDefinedException("Port " + portName +
" already defined");
else {
// check if the portClass property is present
if (properties == null)
throw new NonstandardException("TypeMap should not be empty: " +