Move buildParametersArray() into an Util class
Move buildParametersArray() into an Util class
Support for PHP 5.4
Handle $resultFactory parameter