Split this method to separated getMailAgentParameters() and getMailAgentParameter().

P.S. getMailAgentParameter() can return Option ;)