Type (int value) { switch (value) { case 1: return BUILD_MESSAGE; case 2: return OUTPUT_OBJECT; case 3: return CLASS_DATA; case 4: return BUILD_COMPLETED; case 5: return REQUEST_ACK; case 6: return SRC_FILE_LOADED; case 7: return CUSTOM_OUTPUT_OBJECT; default: return null; } }