Added method in Server.java