private void doAdd(ICommand cmd) throws Exception {
		if (cmd.getSubCommand().equals(CmdConstants.SubCmdNames.PACKAGE)) {
			// First get the id of the object to modify, then modify it
			long id = IdManager.getInstance().accessIdWithKey(cmd.getFlagValue(CmdConstants.Flags.OBJECT));
			isc.addPackage(id, cmd.getFlagValue(CmdConstants.Flags.NAME));
			return;
		}
		if (cmd.getSubCommand().equals(CmdConstants.SubCmdNames.FIELD)) {
			long id = IdManager.getInstance().accessIdWithKey(cmd.getFlagValue(CmdConstants.Flags.OBJECT));
			isc.addInstanceField(id, cmd.getFlagValue(CmdConstants.Flags.NAME), cmd.getFlagValue(CmdConstants.Flags.TYPE),
					cmd.getFlagValue(CmdConstants.Flags.MODIFIER));
		}
		if (cmd.getSubCommand().equals(CmdConstants.SubCmdNames.METHOD)) {
			long id = IdManager.getInstance().accessIdWithKey(cmd.getFlagValue(CmdConstants.Flags.OBJECT));
			if (cmd.hasFlag(CmdConstants.Flags.MODIFIER) && !cmd.getFlagValue(CmdConstants.Flags.MODIFIER).contains("static")) {
				isc.addInstanceMethod(id, cmd.getFlagValue(CmdConstants.Flags.NAME), cmd.getFlagValue(CmdConstants.Flags.RETURN),
						cmd.getFlagValue(CmdConstants.Flags.ARGUMENTS), cmd.getFlagValue(CmdConstants.Flags.MODIFIER));
				return;
			}
			isc.addStaticMethod(id, cmd.getFlagValue(CmdConstants.Flags.NAME), cmd.getFlagValue(CmdConstants.Flags.RETURN),
					cmd.getFlagValue(CmdConstants.Flags.ARGUMENTS), cmd.getFlagValue(CmdConstants.Flags.MODIFIER));
			return;
		}
		if (cmd.getSubCommand().equals(CmdConstants.SubCmdNames.RELATIONSHIP)) {
			long superId = IdManager.getInstance().accessIdWithKey(cmd.getFlagValue(CmdConstants.Flags.SUPERTYPE));
			long subId = IdManager.getInstance().accessIdWithKey(cmd.getFlagValue(CmdConstants.Flags.SUBTYPE));
			isc.addRelationship(superId, subId, cmd.getFlagValue(CmdConstants.Flags.TYPE));
			return;
		}

		if (cmd.getSubCommand().equals(CmdConstants.SubCmdNames.CACHE)) {
			// Get type
			String type = cmd.getFlagValue(CmdConstants.Flags.TYPE).toUpperCase();
			long id = Long.parseLong(CmdConstants.Flags.ID);
			isc.addObject(type, CacheManager.getInstance().getObject(id));
			return;
		}
	}