engine: Extract getNetwork() method

Too many repetitions of getParameters().getNetwork()

Change-Id: I7c6257df48afa86673eda39499c53d7f09325365
Signed-off-by: Moti Asayag <masayag@redhat.com>