class NetworkAddressEntityDataMapper {

  public NetworkAddress transform(NetworkAddressEntity networkAddressEntity) {
    if (networkAddressEntity == null) {
      return null;
    }

    return NetworkAddress.builder()
        .ip(networkAddressEntity.ip())
        .port(networkAddressEntity.port())
        .build();
  }

  @Inject public  NetworkAddressEntityDataMapper();

}