If the bean to be inlined is referenced by one or more "p" syntax references, invalid config xml is produced.
The most logical thing to do would be to convert the "p" references to regular <property> references.
Perhaps the code for doing that could be reused for implementing IDEA-17967 