Design and implementation of a distributed middleware for parallel execution of legacy enterprise applications