using getResource to find beans.xml