fluid-api/src/main/java/com/fluidbpm/program/api/util/UtilGlobal.java
public static byte[] decodeBase16(String stringParam) {

		if(stringParam == null)
		{
			return null;
		}

		if(stringParam.trim().isEmpty())
		{
			return new byte[]{};
		}

		int len = stringParam.length();
		byte[] data = new byte[len / 2];
		for (int i = 0; i < len; i += 2) {
			data[i / 2] = (byte) ((Character.digit(stringParam.charAt(i), 16) << 4)
					+ Character.digit(stringParam.charAt(i+1), 16));
		}

		return data;
	}
public static byte[] decodeBase16(String stringParam) {

		if(stringParam == null)
		{
			return null;
		}

		if(stringParam.trim().isEmpty())
		{
			return new byte[]{};
		}

		int len = stringParam.length();
		byte[] data = new byte[len / 2];
		for (int i = 0; i < len; i += 2) {
			data[i / 2] = (byte) ((Character.digit(stringParam.charAt(i), 16) << 4)
					+ Character.digit(stringParam.charAt(i+1), 16));
		}

		return data;
	}
Encodes the {@code stringParam} as {@code byte[]}.

@param stringParam to convert to bytes.
@return bytes from {@code stringParam}.