public void parseArgs(RMIMessageInvoke request) {
		Object[] args = request.getArgs();
		Class<?>[] argsTypes = request.getArgsTypes();
		if (args != null) {
			argsTypes = new Class[args.length];
			for (int i = 0; i < args.length; i++) {
				if (args[i] instanceof RemoteObjectReference) {
					System.out.println("found a remote argument");
					System.out.println("hashmap is: " + TestServer.getWarehouse());
					//hard coding
					args[i] = TestServer.getWarehouse().get(((RemoteObjectReference)args[i]).getObjName());
					System.out.println("replaced ror with: "+args[i]);
					argsTypes[i] = args[i].getClass().getInterfaces()[0];
					continue;
				}
				argsTypes[i] = args[i].getClass();
			}
			request.setArgs(args);
			request.setArgsTypes(argsTypes);
		}
		
	}