private XDependentTextField[] getTextFieldsByProperty(String _PropertyName, Object _aPropertyValue, String _TypeName) throws Exception{
try {
XDependentTextField[] xDependentFields;
Vector xDependentVector = new Vector();
if (xTextFieldsSupplier.getTextFields().hasElements()) {
XPropertySet xPSet;
XEnumeration xEnum = xTextFieldsSupplier.getTextFields().createEnumeration();
while (xEnum.hasMoreElements()) {
Object oTextField = xEnum.nextElement();
XDependentTextField xDependent = (XDependentTextField) UnoRuntime.queryInterface(XDependentTextField.class, oTextField);
xPSet = xDependent.getTextFieldMaster();
if (xPSet.getPropertySetInfo().hasPropertyByName(_PropertyName)){
Object oValue = xPSet.getPropertyValue(_PropertyName);
// TODO replace the following comparison via com.sun.star.uno.Any.Type
if(AnyConverter.isString(oValue)){
if (_TypeName.equals("String")){
String sValue = AnyConverter.toString(oValue);
if (sValue.equals(_aPropertyValue))