code: @SuppressWarnings("rawtypes")
  	protected String extractPassword(Object credentials) {
          String password = null;
          if (credentials instanceof String) {
              password = (String) credentials;
          } else if (credentials instanceof Map) {
              password = (String) ((Map) credentials).get(MessageIOConstants.SECURITY_CREDENTIALS);
          }
          return password;
      }
docs: Extracts the password from the Flex client credentials
  
  @param credentials the Flex client credentials
  @return the extracted password