// Set the location on the server state
state.setLocation(new Vector3f(origX, origY, origZ));
// Set the destination look direction from the text field. If the text
// field is empty, then set the server state as a zero rotation.
Quaternion look = new Quaternion();
Vector3f axis = new Vector3f(0.0f, 1.0f, 0.0f);
float angle = (float) Math.toRadians(origLookDirection);
look.fromAngleAxis((float) angle, axis);
state.setLook(look);
state.setAudioSourceType(origAudioSourceType);
state.setAudioSource(origAudioSource);
state.setUploadFile(true);