private InvAccess findAccessByServiceType(List<InvAccess> accessList, ServiceType type) {
    """
	works against the accessList instead of the dataset list, so we can remove and try again
    """
    for (InvAccess a : accessList) {
      if (type.toString().equalsIgnoreCase(a.getService().getServiceType().toString()))
        return a;
    }
    return null;
  }
private InvAccess findAccessByServiceType(List<InvAccess> accessList, ServiceType type) {
    for (InvAccess a : accessList) {
      if (type.toString().equalsIgnoreCase(a.getService().getServiceType().toString()))
        return a;
    }
    return null;
  }
private InvAccess findAccessByServiceType ( List < InvAccess > accessList , ServiceType type ) { for ( InvAccess a : accessList ) { if ( type . toString ( ) . equalsIgnoreCase ( a . getService ( ) . getServiceType ( ) . toString ( ) ) ) return a ; } return null ; }
works against the accessList instead of the dataset list, so we can remove and try again
works against the accessList instead of the dataset list so we can remove and try again