class HeatBridgeUtils {

    public static Optional<String> getMatchingPserverPifName(@Nonnull final String physicalNetworkName) {
        Preconditions.checkState(!Strings.isNullOrEmpty(physicalNetworkName),
                "Physical network name is null or empty!");
        if (physicalNetworkName.contains(OS_SIDE_DEDICATED_SRIOV_PREFIX)) {
            return Optional.of(
                    physicalNetworkName.replace(OS_SIDE_DEDICATED_SRIOV_PREFIX, COMPUTE_SIDE_DEDICATED_SRIOV_PREFIX));
        } else if (physicalNetworkName.contains(OS_SIDE_SHARED_SRIOV_PREFIX)) {
            return Optional
                    .of(physicalNetworkName.replace(OS_SIDE_SHARED_SRIOV_PREFIX, COMPUTE_SIDE_SHARED_SRIOV_PREFIX));
        }
        return Optional.of(physicalNetworkName);
    }

    private  HeatBridgeUtils();

}