public FtpletResult afterCommand(FtpSession session, FtpRequest request, FtpReply reply) throws FtpException, IOException { FtpletResult retVal = FtpletResult.DEFAULT; for (Entry<String, Ftplet> entry : ftplets.entrySet()) { retVal = entry.getValue().afterCommand(session, request, reply); if (retVal == null) { retVal = FtpletResult.DEFAULT; } // proceed only if the return value is FtpletResult.DEFAULT if (retVal != FtpletResult.DEFAULT) { break; } } return retVal; }