Handle spring resources if they exist