// Print the current speed
System.out.println( "Current speed: " + Car._Car.getCurrentSpeed() );
// Querying for the interface XDrivingDirection
XDrivingDirection xdrivingdirection = ( XDrivingDirection )
UnoRuntime.queryInterface( XDrivingDirection.class, objectCar );
// Print the current angle
System.out.println( "Current angle: " + Car._Car.getCurrentAngle() );
// Changing the direction
xdrivingdirection.turnLeft( 100 );
// Print the current angle
System.out.println( "Current angle: " + Car._Car.getCurrentAngle() );
xdrivingdirection.turnRight( 150 );
// Print the current angle
System.out.println( "Current angle: " + Car._Car.getCurrentAngle() );
// Querying for the interface XPropertySet