class StringUri {

    public static String copyQueryParams(String sourceUri, String targetUri) {
        if (!containsQueryParams(sourceUri)) {
            return targetUri;
        }

        return targetUri + (containsQueryParams(targetUri) ? "&" : "?") + sourceUri.split("\\?")[1];
    }

    private  StringUri();

}