code: private Integer getPort(String resourcePath, FtpEndpointConfiguration endpointConfiguration) {
          if (resourcePath.contains(":")) {
              return Integer.valueOf(resourcePath.split(":")[1]);
          }
  
          return endpointConfiguration.getPort();
      }
docs: Extract port number from resource path. If not present use default port from endpoint configuration.
  @param resourcePath
  @param endpointConfiguration
  @return