class Utils {

    public static byte[] addressStringToBytes(String hex) {
    	byte[] addr = null;
		try { addr = Hex.decode(hex); }
    	catch(DecoderException addressIsNotValid) { return null; }
		
		if(isValidAddress(addr))
			return addr;
		return null;
    }

}