// Path: confucius-commons-lang/src/main/java/org/confucius/commons/lang/constants/PathConstants.java
// public interface PathConstants {
// 
//     /**
//      * Slash : <code>"/"</code>
//      */
//     String SLASH = "/";
//     /**
//      * Double Slash : <code>"//"</code>
//      */
//     String DOUBLE_SLASH = SLASH + SLASH;
//     /**
//      * Back Slash : <code>"\"</code>
//      */
//     String BACK_SLASH = "\\";
// 
// }


import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.SystemUtils;
import org.confucius.commons.lang.constants.PathConstants;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.ByteArrayOutputStream;
import java.lang.reflect.Method;
import java.util.StringTokenizer;
import java.util.prefs.Preferences;
        StringBuffer result = new StringBuffer();
        for (int i = 0; i < array.length - 1; i++) {
            result.append((char) array[i]);
        }
        return result.toString();
    }

    /**
     * Get Windows Registry <tt>HKEY_CURRENT_USER</tt> Singleton
     *
     * @return non-null return
     * @throws UnsupportedOperationException
     *         If Non-Windows OS executes current method
     */
    @Nonnull
    public static WindowsRegistry currentUser() throws UnsupportedOperationException {
        if (!SystemUtils.IS_OS_WINDOWS) {
            String message = String.format("Non Windows System");
            throw new UnsupportedOperationException(message);
        }
        return CURRENT_USER;
    }

    /**
     * Returns Windows absolute relativePath of the current node as a byte array. Java "/" separator is transformed into
     * Windows "\".
     *
     * @see Preferences#absolutePath()
     */
    protected byte[] windowsAbsolutePath(String relativePath) {
// Path: confucius-commons-lang/src/main/java/org/confucius/commons/lang/constants/PathConstants.java
// public interface PathConstants {
// 
//     /**
//      * Slash : <code>"/"</code>
//      */
//     String SLASH = "/";
//     /**
//      * Double Slash : <code>"//"</code>
//      */
//     String DOUBLE_SLASH = SLASH + SLASH;
//     /**
//      * Back Slash : <code>"\"</code>
//      */
//     String BACK_SLASH = "\\";
// 
// }


// Path: confucius-commons-util/src/main/java/org/confucius/commons/util/os/windows/WindowsRegistry.java
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.SystemUtils;
import org.confucius.commons.lang.constants.PathConstants;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.ByteArrayOutputStream;
import java.lang.reflect.Method;
import java.util.StringTokenizer;
import java.util.prefs.Preferences;

        StringBuffer result = new StringBuffer();
        for (int i = 0; i < array.length - 1; i++) {
            result.append((char) array[i]);
        }
        return result.toString();
    }

    /**
     * Get Windows Registry <tt>HKEY_CURRENT_USER</tt> Singleton
     *
     * @return non-null return
     * @throws UnsupportedOperationException
     *         If Non-Windows OS executes current method
     */
    @Nonnull
    public static WindowsRegistry currentUser() throws UnsupportedOperationException {
        if (!SystemUtils.IS_OS_WINDOWS) {
            String message = String.format("Non Windows System");
            throw new UnsupportedOperationException(message);
        }
        return CURRENT_USER;
    }

    /**
     * Returns Windows absolute relativePath of the current node as a byte array. Java "/" separator is transformed into
     * Windows "\".
     *
     * @see Preferences#absolutePath()
     */
    protected byte[] windowsAbsolutePath(String relativePath) {
        String resolvedPath = StringUtils.replace(relativePath, PathConstants.SLASH, PathConstants.BACK_SLASH);