removed the dependencie to sun.management, uses now java.lang.management
A little cleaning in rmi connection and socket factory