public ConnectorRecord getConnectorRecord(String recordName) {
   for (int i = 0; i < connectorRecords.size(); i++) {
     ConnectorRecord cr = connectorRecords.get(i);
     if (cr.getName().equals(recordName)) return cr;
   }
   return null;
 }
 public List<ConnectorRecord> getConnectorRecords(
     IDesignElementConnectionPoint.ConnectionPointType... types) {
   List<ConnectorRecord> ret = new ArrayList<ConnectorRecord>();
   for (int i = 0; i < connectorRecords.size(); i++) {
     ConnectorRecord cr = connectorRecords.get(i);
     if (cr.getType().isSet(IDesignElementConnectionPoint.ConnectionPointType.getFlagSet(types)))
       ret.add(cr);
   }
   return ret;
 }