Devolver um objeto no metodo

@Override
//metodo que lida com a chegada de dados na serial ao terminal.
public void serialEvent(SerialPortEvent spe) {

    try {
        switch(spe.getEventType()){
            case SerialPortEvent.DATA_AVAILABLE: //byte[] bufferLeitura = new byte[20];
                
                if (input == null){
                    input = new BufferedReader(
                            new InputStreamReader(
                                    serialPort.getInputStream()));
                }
                if(input.ready()) {
                    protocolo.setLeituraComando(input.readLine());
                    //String inputLine = input.readLine();
                     System.out.println("Chegou: "+ protocolo.getLeituraComando());
                    
                     serialPort.close();
                }
                
                break;
            
            default:
                break;
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
}