The Green function for the BFKL pomeron and the transition to DGLAP evolution