Turn around static axes

Cheers, I finally solved the problem and wrote rotation method - can someone needed.

import com.jme3.math.*;
import com.jme3.scene.*;

public class Rotator {

public static void rotate (Spatial spatial, Quaternion quaternion) {

Node node = new Node();
node.rotate(quaternion);

Transform transform = new Transform();
transform.set(spatial.getLocalTransform());
transform.combineWithParent(node.getLocalTransform());

spatial.setLocalTransform(transform);

}

public static void rotate (Spatial spatial, int axis, float angle) {

Node node = new Node();

Quaternion quaternion = new Quaternion();
Vector3f rotate_axis = Vector3f.ZERO;

switch (axis) { case 0: rotate_axis = Vector3f.UNIT_X; break;
                case 1: rotate_axis = Vector3f.UNIT_Y; break;
                case 2: rotate_axis = Vector3f.UNIT_Z; break; }

quaternion.fromAngleAxis(angle, rotate_axis);
node.rotate(quaternion);

Transform transform = new Transform();
transform.set(spatial.getLocalTransform());
transform.combineWithParent(node.getLocalTransform());

spatial.setLocalTransform(transform);

}

}