private JType zb2javaType(JCodeModel jCodeModel, String type) throws Exception {
		if (type.endsWith("8")) {
			return jCodeModel.SHORT;
		} else if (type.endsWith("16")) {
			return jCodeModel.INT;
		} else if (type.endsWith("24")) {
			return jCodeModel.INT;
		} else if (type.endsWith("32")) {
			return jCodeModel.LONG;
		} else if (type.equals("octets")) {
			return jCodeModel.BYTE.array();
		} else
			throw new Exception("Unsupported type " + type);
	}