@Override
 public void sendMsg(Messages msg) {
   try {
     if (!msg.getEncryptedStatus()) {
       msg.EncryptedMe(SingletonEncryptionMethod.getInstance());
     }
     os.writeObject(msg);
     os.flush();
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
 @Override
 public Messages enctyptMsg(Messages msg) {
   msg.EncryptedMe(SingletonEncryptionMethod.getInstance());
   return msg;
 }